package ctn.service.dto;

import java.util.Date;

import org.springframework.web.multipart.commons.CommonsMultipartFile;

import ctn.util.jmesa.DateUtils;

public class FunDTO {
	private Long ID;
	private Long cpaID;
	private String funName;
	private String implUserId;
	private Date completeDate;
	private Date startDate;
	private Date planEndDate;
	private String planEndDateStr; 
	private Date createDate;
	private String status;
	private Long level;
	private Long stage;
	
	private String funDesc;
	private String createName;
	
	
	private String fileName;
	private String fileUrl;
	private String fileTyp;
	private String filePath;
	private CommonsMultipartFile upFile;
	
	public String getPlanEndDateStr() {
		if(this.planEndDate!=null){
			planEndDateStr=DateUtils.formatDateTime("yyyy-MM-dd", planEndDate);
		}
		return planEndDateStr;
	}
	public void setPlanEndDateStr(String planEndDateStr) {
		this.planEndDateStr = planEndDateStr;
	}
	private Long verId;
	
	
	public Long getVerId() {
		return verId;
	}
	public void setVerId(Long verId) {
		this.verId = verId;
	}
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public String getFileUrl() {
		return fileUrl;
	}
	public void setFileUrl(String fileUrl) {
		this.fileUrl = fileUrl;
	}
	public String getFileTyp() {
		return fileTyp;
	}
	public void setFileTyp(String fileTyp) {
		this.fileTyp = fileTyp;
	}
	public String getFilePath() {
		return filePath;
	}
	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}
	public CommonsMultipartFile getUpFile() {
		return upFile;
	}
	public void setUpFile(CommonsMultipartFile upFile) {
		this.upFile = upFile;
	}

	public String getFunDesc() {
		return funDesc;
	}
	public void setFunDesc(String funDesc) {
		this.funDesc = funDesc;
	}
	public String getCreateName() {
		return createName;
	}
	public void setCreateName(String createName) {
		this.createName = createName;
	}
	public Long getID() {
		return ID;
	}
	public void setID(Long iD) {
		ID = iD;
	}
	public Long getCpaID() {
		return cpaID;
	}
	public void setCpaID(Long cpaID) {
		this.cpaID = cpaID;
	}
	public String getFunName() {
		return funName;
	}
	public void setFunName(String funName) {
		this.funName = funName;
	}
	public String getImplUserId() {
		return implUserId;
	}
	public void setImplUserId(String implUserId) {
		this.implUserId = implUserId;
	}
	public Date getCompleteDate() {
		return completeDate;
	}
	public void setCompleteDate(Date completeDate) {
		completeDate = completeDate;
	}
	public Date getStartDate() {
		return startDate;
	}
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	public Date getPlanEndDate() {
		return planEndDate;
	}
	public void setPlanEndDate(Date planEndDate) {
		this.planEndDate = planEndDate;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public Long getLevel() {
		return level;
	}
	public void setLevel(Long level) {
		this.level = level;
	}
	public Long getStage() {
		return stage;
	}
	public void setStage(Long stage) {
		this.stage = stage;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	
}
